<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>邀请记录</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="刘代应">
	<meta name="hashcode" content="877650018">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "877650018";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("invitrecord.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建邀请记录"
  			,"inport":"导入邀请记录"
  			,"update":"修改邀请记录"
  			,"detail":"邀请记录详情"
  			
  			
			
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#invitrecordForm").form({
		"":function(){}
		,"invitRecord.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"invitRecord.brand":function(el){
		}
		,"invitRecord.invitedPerson":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"invitRecord.invitedCoupon":function(el){
		}
		,"invitRecord.invitedDiscount":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "受邀折扣输入格式错误";
		}
		,"invitRecord.recom":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"invitRecord.recomCoupon":function(el){
		}
		,"invitRecord.recomDiscount":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "折扣输入格式错误";
		}
		,"invitRecord.invitrType":function(el){
		}
		,"invitRecord.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"invitRecord.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"invitRecord.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>




<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="InvitRecord" id="invitrecordForm" name="invitrecordForm" target="jsoniframe" action="invitrecord.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写邀请记录相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
			
			
					
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{invitRecord$id}}">
				{{invitRecord$id}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$id}}">
			<input type="hidden" value="{{lz.htm(invitRecord.id)}}" name="invitRecord.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{invitRecord.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.id$||invitRecord.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
					
	{{lz.set("brand_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"brand"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"brand"))))}}
	{{lz.set("brand_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$brand}}
	<dl lz:if="{{brand_editable||brand_readonly}}" class="ribs brand  " major  ref="brand">
		<dt>品　　牌:</dt>
		<dd lz:if="{{brand_editable}}" input="query">
			<lz:block lz:if="{{invitRecord$brand}}">
				{{invitRecord$brand}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$brand}}">
		 			<input title="请输入品牌信息品牌名称进行查询" class="combox narrow" action="/admin/business/merchant.query.do?value={param}" type="text" id="brand" name="invitRecord.brand" text="{{lz.html(invitRecord.brand$||invitRecord.brand)}}" value="{{lz.htm(invitRecord.brand)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#brand').val())==''){return;};window.href('/admin/business/merchant.detail.html?key='+$('#brand').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{brand_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="brand">{{invitRecord.brand}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=invitRecord.brand}')">
			 {{lz.html(invitRecord.brand$||invitRecord.brand)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$brand}}
					
	{{lz.set("invitedPerson_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"invitedPerson"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"invitedPerson"))))}}
	{{lz.set("invitedPerson_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitedPerson}}
	<dl lz:if="{{invitedPerson_editable||invitedPerson_readonly}}" class="invitedPerson  " major  ref="invitedPerson">
		<dt>被 邀 人:</dt>
		<dd lz:if="{{invitedPerson_editable}}" input="query">
			<lz:block lz:if="{{invitRecord$invitedPerson}}">
				{{invitRecord$invitedPerson}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$invitedPerson}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="invitedPerson" name="invitRecord.invitedPerson" text="{{lz.html(invitRecord.invitedPerson$||invitRecord.invitedPerson)}}" value="{{lz.htm(invitRecord.invitedPerson)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#invitedPerson').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#invitedPerson').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitedPerson_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitedPerson">{{invitRecord.invitedPerson}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=invitRecord.invitedPerson}')">
			 {{lz.html(invitRecord.invitedPerson$||invitRecord.invitedPerson)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitedPerson}}
					
	{{lz.set("invitedCoupon_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"invitedCoupon"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"invitedCoupon"))))}}
	{{lz.set("invitedCoupon_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitedCoupon}}
	<dl lz:if="{{invitedCoupon_editable||invitedCoupon_readonly}}" class="ribs invitedCoupon  " major  ref="invitedCoupon">
		<dt>折扣券ID:</dt>
		<dd lz:if="{{invitedCoupon_editable}}" input="query">
			<lz:block lz:if="{{invitRecord$invitedCoupon}}">
				{{invitRecord$invitedCoupon}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$invitedCoupon}}">
		 			<input title="请输入用户优惠券编号进行查询" class="combox narrow" action="/admin/coupons/coupon.query.do?value={param}" type="text" id="invitedCoupon" name="invitRecord.invitedCoupon" text="{{lz.html(invitRecord.invitedCoupon$||invitRecord.invitedCoupon)}}" value="{{lz.htm(invitRecord.invitedCoupon)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#invitedCoupon').val())==''){return;};window.href('/admin/coupons/coupon.detail.html?key='+$('#invitedCoupon').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitedCoupon_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitedCoupon">{{invitRecord.invitedCoupon}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/coupons/coupon.details.html?key=invitRecord.invitedCoupon}')">
			 {{lz.html(invitRecord.invitedCoupon$||invitRecord.invitedCoupon)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitedCoupon}}
					
	{{lz.set("invitedDiscount_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"invitedDiscount"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"invitedDiscount"))))}}
	{{lz.set("invitedDiscount_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitedDiscount}}
	<dl lz:if="{{invitedDiscount_editable||invitedDiscount_readonly}}" class="ribs invitedDiscount  " major  ref="invitedDiscount">
		<dt>受邀折扣:</dt>
		<dd lz:if="{{invitedDiscount_editable}}" input="menoy">
			<lz:block lz:if="{{invitRecord$invitedDiscount}}">
				{{invitRecord$invitedDiscount}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$invitedDiscount}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="invitRecord.invitedDiscount" id="invitedDiscount"  value="{{lz.htm(invitRecord.invitedDiscount)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入邀请记录的受邀折扣</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitedDiscount_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitedDiscount">{{invitRecord.invitedDiscount}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.invitedDiscount$||invitRecord.invitedDiscount)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitedDiscount}}
					
	{{lz.set("recom_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"recom"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"recom"))))}}
	{{lz.set("recom_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$recom}}
	<dl lz:if="{{recom_editable||recom_readonly}}" class="recom  " major  ref="recom">
		<dt>推 荐 人:</dt>
		<dd lz:if="{{recom_editable}}" input="query">
			<lz:block lz:if="{{invitRecord$recom}}">
				{{invitRecord$recom}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$recom}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="recom" name="invitRecord.recom" text="{{lz.html(invitRecord.recom$||invitRecord.recom)}}" value="{{lz.htm(invitRecord.recom)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#recom').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#recom').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{recom_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="recom">{{invitRecord.recom}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=invitRecord.recom}')">
			 {{lz.html(invitRecord.recom$||invitRecord.recom)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$recom}}
					
	{{lz.set("recomCoupon_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"recomCoupon"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"recomCoupon"))))}}
	{{lz.set("recomCoupon_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$recomCoupon}}
	<dl lz:if="{{recomCoupon_editable||recomCoupon_readonly}}" class="ribs recomCoupon  " major  ref="recomCoupon">
		<dt>折扣券ID:</dt>
		<dd lz:if="{{recomCoupon_editable}}" input="query">
			<lz:block lz:if="{{invitRecord$recomCoupon}}">
				{{invitRecord$recomCoupon}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$recomCoupon}}">
		 			<input title="请输入用户优惠券编号进行查询" class="combox narrow" action="/admin/coupons/coupon.query.do?value={param}" type="text" id="recomCoupon" name="invitRecord.recomCoupon" text="{{lz.html(invitRecord.recomCoupon$||invitRecord.recomCoupon)}}" value="{{lz.htm(invitRecord.recomCoupon)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#recomCoupon').val())==''){return;};window.href('/admin/coupons/coupon.detail.html?key='+$('#recomCoupon').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{recomCoupon_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="recomCoupon">{{invitRecord.recomCoupon}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/coupons/coupon.details.html?key=invitRecord.recomCoupon}')">
			 {{lz.html(invitRecord.recomCoupon$||invitRecord.recomCoupon)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$recomCoupon}}
					
	{{lz.set("recomDiscount_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"recomDiscount"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"recomDiscount"))))}}
	{{lz.set("recomDiscount_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$recomDiscount}}
	<dl lz:if="{{recomDiscount_editable||recomDiscount_readonly}}" class="ribs recomDiscount  " major  ref="recomDiscount">
		<dt>折　　扣:</dt>
		<dd lz:if="{{recomDiscount_editable}}" input="menoy">
			<lz:block lz:if="{{invitRecord$recomDiscount}}">
				{{invitRecord$recomDiscount}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$recomDiscount}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="invitRecord.recomDiscount" id="recomDiscount"  value="{{lz.htm(invitRecord.recomDiscount)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入邀请记录的折扣</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{recomDiscount_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="recomDiscount">{{invitRecord.recomDiscount}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.recomDiscount$||invitRecord.recomDiscount)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$recomDiscount}}
					
	{{lz.set("invitrType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"invitrType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"invitrType"))))}}
	{{lz.set("invitrType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$invitrType}}
	<dl lz:if="{{invitrType_editable||invitrType_readonly}}" class="ribs invitrType  " major  ref="invitrType">
		<dt>邀请类型:</dt>
		<dd lz:if="{{invitrType_editable}}" input="select">
			<lz:block lz:if="{{invitRecord$invitrType}}">
				{{invitRecord$invitrType}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$invitrType}}">
		 	<select class="narrow" id="invitrType" name="invitRecord.invitrType">
		 		<option value="">请选择</option>
				<option value="1" selected='{{invitRecord.invitrType=="1"?"selected":""}}'>新人邀请</option>
				<option value="2" selected='{{invitRecord.invitrType=="2"?"selected":""}}'>老用户回归</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择邀请记录的邀请类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{invitrType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="invitrType">{{invitRecord.invitrType}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.invitrType$||invitRecord.invitrType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$invitrType}}
					
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{invitRecord$updateTime}}">
				{{invitRecord$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="invitRecord.updateTime" id="updateTime"  value="{{invitRecord.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请记录的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{invitRecord.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.updateTime$||invitRecord.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
					
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{invitRecord$addTime}}">
				{{invitRecord$addTime}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="invitRecord.addTime" id="addTime"  value="{{invitRecord.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请记录的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{invitRecord.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.addTime$||invitRecord.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
					
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{invitRecord$status}}">
				{{invitRecord$status}}
			</lz:block>
			<lz:block lz:if="{{!invitRecord$status}}">
		 	<select class="narrow" id="status" name="invitRecord.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{invitRecord.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{invitRecord.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择邀请记录的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{invitRecord.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(invitRecord.status$||invitRecord.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{invitRecord.id}}" name="invitRecord.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/users/invitrecord.edit.html?edittype=update&id={{invitRecord.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/users/invitrecord.edit.html",document.title,"/admin//images/icons/2008825642250778028.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/users/invitrecord.edit.html");
		}else{
			$.closeModalDialog();
		}
	}



</script>
</html>